package tw.com.bean;

public class Stock {
	private MyDate date = new MyDate();
	private String sockVal = "";

	public MyDate getDate() {
		return date;
	}

	public void setDate(MyDate date) {
		this.date = date;
	}

	public String getSockVal() {
		return sockVal;
	}

	public void setSockVal(String sockVal) {
		this.sockVal = sockVal;
	}

	@Override
	public String toString() {
		return "Stock [date=" + date + ", sockVal=" + sockVal + "]";
	}

	public boolean equals(Stock obj) {
		return this.date.getYyy().equals(obj.getDate().getYyy())&&this.date.getMm().equals(obj.getDate().getMm())&&this.date.getDd().equals(obj.getDate().getDd());
	}
	

}
